.class Lcom/netease/newsreader/activity/AccountRegister$1;
.super Ljava/lang/Object;
.source "AccountRegister.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/AccountRegister;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/AccountRegister;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/AccountRegister;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    .line 93
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "v"

    .prologue
    const/4 v5, 0x1

    .line 96
    iget-object v2, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$0(Lcom/netease/newsreader/activity/AccountRegister;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    if-nez v1, :cond_1

    const-string v1, ""

    :goto_0
    invoke-static {v2, v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$1(Lcom/netease/newsreader/activity/AccountRegister;Ljava/lang/String;)V

    .line 97
    iget-object v2, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$2(Lcom/netease/newsreader/activity/AccountRegister;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    if-nez v1, :cond_2

    const-string v1, ""

    :goto_1
    invoke-static {v2, v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$3(Lcom/netease/newsreader/activity/AccountRegister;Ljava/lang/String;)V

    .line 99
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$4(Lcom/netease/newsreader/activity/AccountRegister;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 100
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 101
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    iget-object v2, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    const-string v3, ""

    const-string v4, "\u6b63\u5728\u6ce8\u518c..."

    invoke-static {v2, v3, v4, v5, v5}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/netease/newsreader/activity/AccountRegister;->access$5(Lcom/netease/newsreader/activity/AccountRegister;Landroid/app/ProgressDialog;)V

    .line 102
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/netease/newsreader/activity/AccountRegister$RegisterHandler;

    iget-object v2, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-direct {v1, v2}, Lcom/netease/newsreader/activity/AccountRegister$RegisterHandler;-><init>(Lcom/netease/newsreader/activity/AccountRegister;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 103
    .local v0, registerThread:Ljava/lang/Thread;
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 109
    .end local v0           #registerThread:Ljava/lang/Thread;
    :cond_0
    :goto_2
    return-void

    .line 96
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$0(Lcom/netease/newsreader/activity/AccountRegister;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    .line 97
    :cond_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    invoke-static {v1}, Lcom/netease/newsreader/activity/AccountRegister;->access$2(Lcom/netease/newsreader/activity/AccountRegister;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_1

    .line 105
    :cond_3
    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountRegister$1;->this$0:Lcom/netease/newsreader/activity/AccountRegister;

    iget-object v1, v1, Lcom/netease/newsreader/activity/AccountRegister;->registerHandler:Landroid/os/Handler;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_2
.end method
